package org.javamessage;

import org.springframework.stereotype.Service;

@Service("consume")
public class Received 
{
	
	public void listenDirect(Object msg){
		if (msg instanceof String){
			System.out.println("listenDirect*********************");
		}
	}
	
	public void listenFanout(Object msg){
		if (msg instanceof String){
			System.out.println("listenFanout*********************");
		}
	}
	
	
}
